package edu.dayu.service;

import com.github.pagehelper.PageInfo;
import edu.dayu.pojo.Blog;
import edu.dayu.pojo.Paging;

import java.util.List;
import java.util.Map;

public interface BlogService {

    PageInfo<Blog> listBlog(Blog blog);

    PageInfo<Blog> listBlogTag(Blog blog);

    Blog getBlog(Blog blog);

    Boolean saveBlog(Blog blog);

    Boolean updateBlog(Blog blog);

    void deleteBlog(int id);

    int countBlog();

    void updateBlogViews(Blog blog);

    Map<String,List<Blog>> listBlogByYear();
}
